Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove secret file existence check in Validate for headers #687

Merged
merged 2 commits into from
Sep 3, 2024

Conversation

roidelapluie
Copy link
Member

This commit removes the check for the existence of the secret file for headers in the Validate function. The check is not valid for relative paths since Validate is called before SetDirectory, which is responsible for setting up the environment. This change aligns with the handling of other secret files, which are not checked during config validation.

This commit removes the check for the existence of the secret file for
headers in the `Validate` function. The check is not valid for relative
paths since `Validate` is called before `SetDirectory`, which is
responsible for setting up the environment. This change aligns with the
handling of other secret files, which are not checked during config
validation.

Signed-off-by: Julien <[email protected]>
@roidelapluie
Copy link
Member Author

Added a second commit to align SetDirectory to other configs.

@roidelapluie roidelapluie merged commit b1880d0 into prometheus:main Sep 3, 2024
7 checks passed
codeboten added a commit to open-telemetry/opentelemetry-collector that referenced this pull request Sep 10, 2024
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/common](https://redirect.github.com/prometheus/common)
| `v0.57.0` -> `v0.59.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fcommon/v0.59.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fcommon/v0.59.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fcommon/v0.57.0/v0.59.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fcommon/v0.57.0/v0.59.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>prometheus/common (github.com/prometheus/common)</summary>

###
[`v0.59.1`](https://redirect.github.com/prometheus/common/releases/tag/v0.59.1)

[Compare
Source](https://redirect.github.com/prometheus/common/compare/v0.59.0...v0.59.1)

#### What's Changed

- fix(utf8): Fix multiple metric name inside braces validation by
[@&#8203;fedetorres93](https://redirect.github.com/fedetorres93) in
[prometheus/common#691

**Full Changelog**:
prometheus/common@v0.59.0...v0.59.1

###
[`v0.59.0`](https://redirect.github.com/prometheus/common/releases/tag/v0.59.0)

[Compare
Source](https://redirect.github.com/prometheus/common/compare/v0.58.0...v0.59.0)

#### What's Changed

- expfmt: Add WithEscapingScheme to help construct Formats by
[@&#8203;ywwg](https://redirect.github.com/ywwg) in
[prometheus/common#688
- Change the default escape method to UnderscoreEscaping by
[@&#8203;ywwg](https://redirect.github.com/ywwg) in
[prometheus/common#690

**Full Changelog**:
prometheus/common@v0.58.0...v0.59.0

###
[`v0.58.0`](https://redirect.github.com/prometheus/common/releases/tag/v0.58.0)

[Compare
Source](https://redirect.github.com/prometheus/common/compare/v0.57.0...v0.58.0)

#### What's Changed

- docs: mention new promslog package in package list in README by
[@&#8203;tjhop](https://redirect.github.com/tjhop) in
[prometheus/common#683
- Bump golang.org/x/oauth2 from 0.21.0 to 0.22.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[prometheus/common#684
- Bump golang.org/x/net from 0.27.0 to 0.28.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[prometheus/common#685
- Remove secret file existence check in Validate for headers by
[@&#8203;roidelapluie](https://redirect.github.com/roidelapluie) in
[prometheus/common#687

**Full Changelog**:
prometheus/common@v0.57.0...v0.58.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/open-telemetry/opentelemetry-collector).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGVib3QiXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <[email protected]>
Co-authored-by: Alex Boten <[email protected]>
mx-psi pushed a commit to open-telemetry/opentelemetry-collector-contrib that referenced this pull request Sep 11, 2024
)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[github.com/prometheus/common](https://redirect.github.com/prometheus/common)
| `v0.57.0` -> `v0.59.1` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fcommon/v0.59.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fcommon/v0.59.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fcommon/v0.57.0/v0.59.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fcommon/v0.57.0/v0.59.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>prometheus/common (github.com/prometheus/common)</summary>

###
[`v0.59.1`](https://redirect.github.com/prometheus/common/releases/tag/v0.59.1)

[Compare
Source](https://redirect.github.com/prometheus/common/compare/v0.59.0...v0.59.1)

#### What's Changed

- fix(utf8): Fix multiple metric name inside braces validation by
[@&#8203;fedetorres93](https://redirect.github.com/fedetorres93) in
[prometheus/common#691

**Full Changelog**:
prometheus/common@v0.59.0...v0.59.1

###
[`v0.59.0`](https://redirect.github.com/prometheus/common/releases/tag/v0.59.0)

[Compare
Source](https://redirect.github.com/prometheus/common/compare/v0.58.0...v0.59.0)

#### What's Changed

- expfmt: Add WithEscapingScheme to help construct Formats by
[@&#8203;ywwg](https://redirect.github.com/ywwg) in
[prometheus/common#688
- Change the default escape method to UnderscoreEscaping by
[@&#8203;ywwg](https://redirect.github.com/ywwg) in
[prometheus/common#690

**Full Changelog**:
prometheus/common@v0.58.0...v0.59.0

###
[`v0.58.0`](https://redirect.github.com/prometheus/common/releases/tag/v0.58.0)

[Compare
Source](https://redirect.github.com/prometheus/common/compare/v0.57.0...v0.58.0)

#### What's Changed

- docs: mention new promslog package in package list in README by
[@&#8203;tjhop](https://redirect.github.com/tjhop) in
[prometheus/common#683
- Bump golang.org/x/oauth2 from 0.21.0 to 0.22.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[prometheus/common#684
- Bump golang.org/x/net from 0.27.0 to 0.28.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot) in
[prometheus/common#685
- Remove secret file existence check in Validate for headers by
[@&#8203;roidelapluie](https://redirect.github.com/roidelapluie) in
[prometheus/common#687

**Full Changelog**:
prometheus/common@v0.57.0...v0.58.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwicmVub3ZhdGVib3QiXX0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants